const { mongo } = require('mongoose')
const mongoose=require('../db')
const Schema=mongoose.Schema

const schema=new Schema({
    teststoreid:{type:String,required:true},
    questiontitle:{type:String,required:true},
    answer:{type:Array,required:true},
    // 题目分类
    category:{type:String,required:true},
    // 难易等级
    diflevel:{type:String,required:true},
    // 题目类型
    type:{type:Number,required:true},
    // 分值
    score:{type:Number,required:true},
    // 正确答案
    correntanswer:{type:String,required:true}

})
module.exports =mongoose.model('Teststore',schema)